﻿@model RegisterModel

@{ ViewBag.Title = "Register"; }

<section>
    <div class="grid_6">

        @using (Html.BeginForm()) {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Registration</legend>
                <div class="k-block">
                    <div class="k-header k-state-selected">Registration form.</div>
                    <div class="k-block k-info-colored">Register as a new user by completing entering your email address and choosing a password or @Html.ActionLink("Login", "Index", "Login") if you you've already registered.</div>
                    
                    <div>
                        @Html.LabelFor(m => m.UserName)
                    </div>
                    <div>
                        @Html.TextBoxFor(m => m.UserName, new { @class = "k-textbox"})
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>

                    <div>
                        @Html.LabelFor(m => m.Password)
                    </div>
                    <div>
                        @Html.PasswordFor(m => m.Password, new { @class = "k-textbox"})
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    
                    <div>
                        @Html.LabelFor(m => m.ConfirmPassword)
                    </div>
                    <div>
                        @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "k-textbox"})
                        @Html.ValidationMessageFor(m => m.ConfirmPassword)
                    </div>

                    <div>
                        <button class="k-button" type="submit">
                            <span class="k-icon k-i-tick"></span>
                            <span>Register</span>
                        </button>
                    </div>
                </div>
            </fieldset>
        }

    </div>
</section>
